{if $numpoints > 0}
<form name="form1" method="post" action="{$editFormAction}">
	<table {if $edits == true}width="50%"{else}width="25%"{/if} border="0" cellpadding="4" cellspacing="1" class="table" align="center">
		<tr>
        <th class="bighead" {if $edits == true}colspan="4"{else}colspan="2"{/if}>Patrol Points</th>
        </tr>
        <tr>
		  <th class="smallhead">Patrol Name</th>
		  <th width="5%" class="smallhead">Points</th>
          {if $edits == true}<th width="15%" class="smallhead">Action</th>
          <th width="20%" class="smallhead">Value</th>{/if}
		</tr>
    {section name=pointloop loop=$numpoints}
		<tr valign="top">
		  <td class="text"><div align="right">{$points[pointloop].teamname}</div></td>
		  <td class="text">{$points[pointloop].points}</td>
          {if $edits == true}
          <td class="text" align="left" ><div align="left">
          <input type="radio" name="how_{$points[pointloop].id}" id="how_{$points[pointloop].id}" value="0" />Add<br />
          <input type="radio" name="how_{$points[pointloop].id}" id="how_{$points[pointloop].id}" value="1" />Subtract<br />
          <input type="radio" name="how_{$points[pointloop].id}" id="how_{$points[pointloop].id}" value="2" />Set to<br />
          <input type="radio" name="how_{$points[pointloop].id}" id="how_{$points[pointloop].id}" value="3" checked="checked"  />Ignore</div>
          </td>
          <td class="text" align="left" >
          <input name="{$points[pointloop].id}" type="text" value="0" class="inputbox" /></td>
          {/if}
		</tr>
	{/section}
    {if $edits == true}<tr>
      <td class="text" colspan="4"><input type="submit" name="Submit" value="Submit" class="button" />
      &nbsp;<input type="reset" name="Submit2" value="Reset" class="button" /></td>
    </tr>{/if}
  </table>
</form>
{else}
<div align="center">There are no groups currently activated for points</div>
{/if}
<div align="center">
 <a href="http://www.cmscout.za.net/index.php?page=subsite&amp;site=Manual&amp;content=adminpanel-points" target="_blank">Help</a>
</div>
